#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_QtWidgetsApplication.h"
#include <ShlObj.h>

using namespace std;

class QtWidgetsApplication : public QMainWindow
{
    Q_OBJECT

public:
    QtWidgetsApplication(QWidget *parent = nullptr);
    ~QtWidgetsApplication();

    bool GetDesktopPath();
    bool ScanDesktopFiles();
    void OrganizeByType();
    bool Initialize();

    size_t GetFileCount() const { return desktopFiles.size(); }

    vector<wstring> desktopFiles;
    wstring  DesketopPath;

    QLabel* label;
    QPlainTextEdit* desktopPathLabel;
    QPushButton* organize;

private:
    Ui::QtWidgetsApplicationClass ui;
};

